Open
Conversation
Author
|
Готовы задания 1, 2, 4, 5, 7 |
LostPointer
requested changes
Apr 11, 2026
|
|
||
| using namespace std; | ||
|
|
||
| pair<int, int> get_terms(vector<int> v, int S) { |
Contributor
There was a problem hiding this comment.
GetTerms(const std::vector<int>& array, int sum) {...}
| using namespace std; | ||
|
|
||
| pair<int, int> get_terms(vector<int> v, int S) { | ||
| int N = v.size(); |
|
|
||
| int l{0}, r{N - 1}; | ||
|
|
||
| int s; |
| else | ||
| cout << result.first << " " << result.second << endl; | ||
| /* | ||
| python3 ./scripts/run_cases.py --tasks task_01 |
Contributor
There was a problem hiding this comment.
хорошо, но я бы перенес в начало файла (что бы при открытии не крутить вниз, в поисках этой строки)
|
|
||
| using namespace std; | ||
|
|
||
| int get_border_index(vector<int> v) { |
Contributor
There was a problem hiding this comment.
то же что и в первой задаче
| ASSERT_EQ(get_border_index(v13), 0); | ||
| } | ||
|
|
||
| void f(int i, vector<int> v) { |
Contributor
There was a problem hiding this comment.
давай файл переименуем
| using namespace std; | ||
|
|
||
| vector<int> temperature_rise(vector<int> v1) { | ||
| vector<int> stack, v2(v1.size(), 0); |
Contributor
There was a problem hiding this comment.
давай 1 строка - одно объявление
| vector<int> v2_sorted = MergeSort(v2); | ||
|
|
||
| // Слияние | ||
| size_t ptr1 = 0, ptr2 = 0; |
Contributor
There was a problem hiding this comment.
я бы сделал отдельной функцией, Merge код станет понятнее
Author
|
Добавлены решения и тесты к задачам 3, 10, 12. Добавлены тесты к задаче 9. Исправлены замечания. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.